﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020007DB RID: 2011
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetRogueBuffEnhanceInfoScRsp : IMessage<GetRogueBuffEnhanceInfoScRsp>, IMessage, IEquatable<GetRogueBuffEnhanceInfoScRsp>, IDeepCloneable<GetRogueBuffEnhanceInfoScRsp>, IBufferMessage
	{
		// Token: 0x17001998 RID: 6552
		// (get) Token: 0x06005A43 RID: 23107 RVA: 0x000F2BCF File Offset: 0x000F0DCF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetRogueBuffEnhanceInfoScRsp> Parser
		{
			get
			{
				return GetRogueBuffEnhanceInfoScRsp._parser;
			}
		}

		// Token: 0x17001999 RID: 6553
		// (get) Token: 0x06005A44 RID: 23108 RVA: 0x000F2BD6 File Offset: 0x000F0DD6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetRogueBuffEnhanceInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700199A RID: 6554
		// (get) Token: 0x06005A45 RID: 23109 RVA: 0x000F2BE8 File Offset: 0x000F0DE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetRogueBuffEnhanceInfoScRsp.Descriptor;
			}
		}

		// Token: 0x06005A46 RID: 23110 RVA: 0x000F2BEF File Offset: 0x000F0DEF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetRogueBuffEnhanceInfoScRsp()
		{
		}

		// Token: 0x06005A47 RID: 23111 RVA: 0x000F2BF8 File Offset: 0x000F0DF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetRogueBuffEnhanceInfoScRsp(GetRogueBuffEnhanceInfoScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.buffEnhanceInfo_ = ((other.buffEnhanceInfo_ != null) ? other.buffEnhanceInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06005A48 RID: 23112 RVA: 0x000F2C44 File Offset: 0x000F0E44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetRogueBuffEnhanceInfoScRsp Clone()
		{
			return new GetRogueBuffEnhanceInfoScRsp(this);
		}

		// Token: 0x1700199B RID: 6555
		// (get) Token: 0x06005A49 RID: 23113 RVA: 0x000F2C4C File Offset: 0x000F0E4C
		// (set) Token: 0x06005A4A RID: 23114 RVA: 0x000F2C54 File Offset: 0x000F0E54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700199C RID: 6556
		// (get) Token: 0x06005A4B RID: 23115 RVA: 0x000F2C5D File Offset: 0x000F0E5D
		// (set) Token: 0x06005A4C RID: 23116 RVA: 0x000F2C65 File Offset: 0x000F0E65
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueBuffEnhanceInfoList BuffEnhanceInfo
		{
			get
			{
				return this.buffEnhanceInfo_;
			}
			set
			{
				this.buffEnhanceInfo_ = value;
			}
		}

		// Token: 0x06005A4D RID: 23117 RVA: 0x000F2C6E File Offset: 0x000F0E6E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetRogueBuffEnhanceInfoScRsp);
		}

		// Token: 0x06005A4E RID: 23118 RVA: 0x000F2C7C File Offset: 0x000F0E7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetRogueBuffEnhanceInfoScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.BuffEnhanceInfo, other.BuffEnhanceInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06005A4F RID: 23119 RVA: 0x000F2CCC File Offset: 0x000F0ECC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.buffEnhanceInfo_ != null)
			{
				num ^= this.BuffEnhanceInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06005A50 RID: 23120 RVA: 0x000F2D21 File Offset: 0x000F0F21
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005A51 RID: 23121 RVA: 0x000F2D29 File Offset: 0x000F0F29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005A52 RID: 23122 RVA: 0x000F2D34 File Offset: 0x000F0F34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.buffEnhanceInfo_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.BuffEnhanceInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005A53 RID: 23123 RVA: 0x000F2D90 File Offset: 0x000F0F90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.buffEnhanceInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BuffEnhanceInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005A54 RID: 23124 RVA: 0x000F2DE8 File Offset: 0x000F0FE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetRogueBuffEnhanceInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.buffEnhanceInfo_ != null)
			{
				if (this.buffEnhanceInfo_ == null)
				{
					this.BuffEnhanceInfo = new RogueBuffEnhanceInfoList();
				}
				this.BuffEnhanceInfo.MergeFrom(other.BuffEnhanceInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005A55 RID: 23125 RVA: 0x000F2E50 File Offset: 0x000F1050
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005A56 RID: 23126 RVA: 0x000F2E5C File Offset: 0x000F105C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 42U)
				{
					if (num != 56U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.buffEnhanceInfo_ == null)
					{
						this.BuffEnhanceInfo = new RogueBuffEnhanceInfoList();
					}
					input.ReadMessage(this.BuffEnhanceInfo);
				}
			}
		}

		// Token: 0x04002313 RID: 8979
		private static readonly MessageParser<GetRogueBuffEnhanceInfoScRsp> _parser = new MessageParser<GetRogueBuffEnhanceInfoScRsp>(() => new GetRogueBuffEnhanceInfoScRsp());

		// Token: 0x04002314 RID: 8980
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002315 RID: 8981
		public const int RetcodeFieldNumber = 7;

		// Token: 0x04002316 RID: 8982
		private uint retcode_;

		// Token: 0x04002317 RID: 8983
		public const int BuffEnhanceInfoFieldNumber = 5;

		// Token: 0x04002318 RID: 8984
		private RogueBuffEnhanceInfoList buffEnhanceInfo_;
	}
}
